package com.tebiecloud.store.server.mapper;

import com.tebiecloud.store.client.model.entity.Store;
import com.tebiecloud.common.mybatis.base.mapper.SuperMapper;
import com.tebiecloud.store.client.model.vo.StoreVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 门店表 Mapper 接口
 *
 * @author tebie
 * @date 2019-09-15
 */
@Repository
public interface StoreMapper extends SuperMapper<Store> {

    /**
     * 获取附近门店
     *
     * @param lng
     * @param lat
     * @return
     */
    List<StoreVO> selectNearby(@Param("lng") Double lng, @Param("lat") Double lat,@Param("storeIds") List<String> storeIds);
}
